package com.changgou.goods.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author: zhengke
 * @date: 2020/12/14
 * @return:
 * @description:
 */
@Table(name="tb_category_brand") //因为要对这个表进行操作，所以要写CategoryBrandMapper。在goods的dao里面
public class CategoryBrand implements Serializable {

    @Id //表明是这个表的主键id
    private Integer categoryId;
    @Id
    private Integer brandId;

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }
}
